From c94d8493bcffb8acd499a8a993545c95f865f5e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Sun, 1 Apr 2012 15:08:13 +0100 Subject: [PATCH] fast-float: reduce overhead of saturating LUT --- extensions/fast-float.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/extensions/fast-float.c b/extensions/fast-float.c index 77ca633..75eb4d1 100644 --- a/extensions/fast-float.c +++ b/extensions/fast-float.c @@ -199,11 +199,6 @@ babl_lookup_new (BablLookupFunction function, ((positive_max-positive_min)+ (negative_max-negative_min)), 1); - printf ("%i\n", - sizeof (BablLookup) + sizeof (float) * - ((positive_max-positive_min)+ - (negative_max-negative_min))); - lookup->positive_min = positive_min; lookup->positive_max = positive_max; lookup->negative_min = negative_min; @@ -446,7 +441,7 @@ init (void) fast_pow = babl_lookup_new (core_lookup, NULL, 0.0, 1.0, 0.0001); fast_rpow = babl_lookup_new (core_rlookup, NULL, 0.0, 1.0, 0.0001); - for (f = 0.0; f < 1.0; f+= 0.000001) + for (f = 0.0; f < 1.0; f+= 0.00001) { a = linear_to_gamma_2_2_lut (f); a = gamma_2_2_to_linear_lut (f); -- 2.30.2